function GM:PlayerDeathThink( ply )
	if ( ply:KeyPressed( IN_ATTACK ) || ply:KeyPressed( IN_ATTACK2 ) || ply:KeyPressed( IN_JUMP ) ) then
		local rp = RecipientFilter()
		rp:AddPlayer(ply)
		umsg.Start("OpenDeathMenu", rp)
		umsg.End()
	end
end

function Respawnanswer(ply,command,answer)
	local plyuni = ply:UniqueID( )
	ply:UnSpectate() 
	ply:Spawn()
	if (answer[1] == "false") then
		for entid,object in pairs(servertable["entitys"]) do
			if (servertable["entitys"][entid]["owner"] == plyuni) then
				if Entity(entid):IsValid() then
					if (Entity(entid):GetClass() == "vehicle") then
						if Changemoney (ply,-30) then
							Msg(tostring(controler))
							Entity(entid):Use(ply,"Null")
							return
						end
					end
				end
			end
		end
		ply:PrintMessage(HUD_PRINTCENTER, "Ship not found")
	end
end
concommand.Add( "Respawnanswer", Respawnanswer ) 
